package com.zhijian.medical.dao.local;

import com.zhijian.medical.entity.po.RoutinePatientDiagnoseReport;
import com.zhijian.medical.entity.vo.request.RoutinePatientDiagnoseReportSearchVo;
import com.zhijian.medical.entity.vo.response.RoutinePatientDiagnoseReportVo;
import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface RoutinePatientDiagnoseReportMapper {
    int deleteByPrimaryKey(Long id);

    int insert(RoutinePatientDiagnoseReport record);

    int insertSelective(RoutinePatientDiagnoseReport record);

    RoutinePatientDiagnoseReport selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(RoutinePatientDiagnoseReport record);

    int updateByPrimaryKey(RoutinePatientDiagnoseReport record);

    /**
     * 查询总数
     *
     * @param routinePatientDiagnoseReportSearchVo
     * @return
     */
    int count(RoutinePatientDiagnoseReportSearchVo routinePatientDiagnoseReportSearchVo);

    /**
     * 查询列表
     *
     * @param routinePatientDiagnoseReportSearchVo
     * @return
     */
    List<RoutinePatientDiagnoseReportVo> selectList(RoutinePatientDiagnoseReportSearchVo routinePatientDiagnoseReportSearchVo);

    /**
     * 查询单个
     *
     * @param routinePatientDiagnoseReportSearchVo
     * @return
     */
    RoutinePatientDiagnoseReportVo selectOne(RoutinePatientDiagnoseReportSearchVo routinePatientDiagnoseReportSearchVo);

    /**
     * 根据ID查询vo
     *
     * @param id
     * @return
     */
    RoutinePatientDiagnoseReportVo selectVoById(Long id);

    /**
     * 批量删除
     *
     * @param idList
     * @return
     */
    void deleteByIdList(@Param("idList") List<Long> idList);

    /**
     * 动态删除
     *
     * @param routinePatientDiagnoseReportSearchVo
     * @return
     */
    void deleteByCondition(RoutinePatientDiagnoseReportSearchVo routinePatientDiagnoseReportSearchVo);

    /**
     * 批量新增
     *
     * @param entities
     * @return
     */
    int insertBatch(@Param("entities") List<RoutinePatientDiagnoseReport> entities);

    /**
     * 根据PatientId查询列表
     *
     * @param patientId
     * @return
     */
    List<RoutinePatientDiagnoseReportVo> selectListByPatientId(Long patientId);

    /**
     * 根据DiagnoseId查询列表
     *
     * @param diagnoseId
     * @return
     */
    List<RoutinePatientDiagnoseReportVo> selectListByDiagnoseId(Long diagnoseId);
}